using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace EventAbstractionAPI.RuleTableCtrl
{
    /// <summary>
    /// A Static class containing reusable helper functions
    /// </summary>
    /// <remarks>
    /// Static classes are loaded automatically by the .NET Framework common language runtime (CLR)
    /// when the program or namespace containing the class is loaded. See http://msdn2.microsoft.com/en-us/library/79b3xss3(VS.80).aspx
    /// </remarks>
    public static class Util
    {
        public static int GetPixelLengthFromString(string text, Font thisFont)
        {
            return TextRenderer.MeasureText(text, thisFont).Width;
        }
    }
}
